package com.sky.client;

import com.sky.entity.ShoppingCart;
import com.sky.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "sky-server-cart-service")
public interface ShoppingCartServiceClient {
    
    /**
     * 批量添加购物车
     * @param shoppingCartList
     * @return
     */
    @PostMapping("/user/shoppingCart/addBatch")
    Result addBatch(@RequestBody List<ShoppingCart> shoppingCartList);
}